package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchPressureDropAnalysisResultsMapper;
import com.ruoyi.system.domain.DispatchPressureDropAnalysisResults;
import com.ruoyi.system.service.IDispatchPressureDropAnalysisResultsService;

/**
 * 压降分析结果Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchPressureDropAnalysisResultsServiceImpl implements IDispatchPressureDropAnalysisResultsService 
{
    @Autowired
    private DispatchPressureDropAnalysisResultsMapper dispatchPressureDropAnalysisResultsMapper;

    /**
     * 查询压降分析结果
     * 
     * @param pressureDropAnalysisResultsId 压降分析结果主键
     * @return 压降分析结果
     */
    @Override
    public DispatchPressureDropAnalysisResults selectDispatchPressureDropAnalysisResultsByPressureDropAnalysisResultsId(Long pressureDropAnalysisResultsId)
    {
        return dispatchPressureDropAnalysisResultsMapper.selectDispatchPressureDropAnalysisResultsByPressureDropAnalysisResultsId(pressureDropAnalysisResultsId);
    }

    /**
     * 查询压降分析结果列表
     * 
     * @param dispatchPressureDropAnalysisResults 压降分析结果
     * @return 压降分析结果
     */
    @Override
    public List<DispatchPressureDropAnalysisResults> selectDispatchPressureDropAnalysisResultsList(DispatchPressureDropAnalysisResults dispatchPressureDropAnalysisResults)
    {
        return dispatchPressureDropAnalysisResultsMapper.selectDispatchPressureDropAnalysisResultsList(dispatchPressureDropAnalysisResults);
    }

    /**
     * 新增压降分析结果
     * 
     * @param dispatchPressureDropAnalysisResults 压降分析结果
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchPressureDropAnalysisResults(DispatchPressureDropAnalysisResults dispatchPressureDropAnalysisResults)
    {
        return dispatchPressureDropAnalysisResultsMapper.insertDispatchPressureDropAnalysisResults(dispatchPressureDropAnalysisResults);
    }

    /**
     * 修改压降分析结果
     * 
     * @param dispatchPressureDropAnalysisResults 压降分析结果
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchPressureDropAnalysisResults(DispatchPressureDropAnalysisResults dispatchPressureDropAnalysisResults)
    {
        return dispatchPressureDropAnalysisResultsMapper.updateDispatchPressureDropAnalysisResults(dispatchPressureDropAnalysisResults);
    }

    /**
     * 批量删除压降分析结果
     * 
     * @param pressureDropAnalysisResultsIds 需要删除的压降分析结果主键
     * @return 结果
     */
    @Override
    public int deleteDispatchPressureDropAnalysisResultsByPressureDropAnalysisResultsIds(Long[] pressureDropAnalysisResultsIds)
    {
        return dispatchPressureDropAnalysisResultsMapper.deleteDispatchPressureDropAnalysisResultsByPressureDropAnalysisResultsIds(pressureDropAnalysisResultsIds);
    }

    /**
     * 删除压降分析结果信息
     * 
     * @param pressureDropAnalysisResultsId 压降分析结果主键
     * @return 结果
     */
    @Override
    public int deleteDispatchPressureDropAnalysisResultsByPressureDropAnalysisResultsId(Long pressureDropAnalysisResultsId)
    {
        return dispatchPressureDropAnalysisResultsMapper.deleteDispatchPressureDropAnalysisResultsByPressureDropAnalysisResultsId(pressureDropAnalysisResultsId);
    }
}
